$def with (page)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<link rel="stylesheet" type="text/css" href="static/styles/$:page.get('name', 'anonymous')/style.css"/> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>$:page.get('title', 'DEFAULT')</title>
</head>
<body style="position: relative; margin:0px;">
$if page.get('base', False):
	<div style="position:block">
	<div class="top">
	$if session.logged:
		<div class="home">
		<ul class="header">
			<li><a href="/"><img src="static/img/logo.png" style="width=200px; height:40px;"/></a></li>
			<li><a class="$:page.get('view', 'top_a')" href="/index">Home</a></li>
			<li><a class="$:page.get('add', 'top_a')" href="/add">New post</a></li>
		</ul>
		<div style="position:absolute; right:8px; top:0px;">
			<a class="top_a" style="float:right;" href="/reset">$:page.get('name', 'anonymous') (exit) &#9660;</a>
		</div>
		</div>

	$else:
		<div class="home">
		<ul class="header">
			<li><a href="/"><img src="static/img/logo.png" style="width=200px; height:40px;"/></a></li>
		</ul>		
		<div style="position:absolute; right:8px; top:0px;">
			<a class="top_a" href="/logon">Login</a>
		</div>		
		</div>
		
	</div>
	<div class="posts">
	$:page
	</div>
	</div>
$else:
	$:page
</body>
